#include <iostream>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    int curIndex = -1; //当前的位置
    int cnt=0;

    while (curIndex!=0)
    {
        if(curIndex<0)
        {
            curIndex += 97;
            cnt++;
        }
        else
        {
            curIndex -= 127;
            cnt++;
        }
    }
    cout << cnt << endl;
    return 0;
}